﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D95 RID: 3477
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class Quest : IMessage<Quest>, IMessage, IEquatable<Quest>, IDeepCloneable<Quest>, IBufferMessage
	{
		// Token: 0x17002C34 RID: 11316
		// (get) Token: 0x06009C26 RID: 39974 RVA: 0x001A2257 File Offset: 0x001A0457
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<Quest> Parser
		{
			get
			{
				return Quest._parser;
			}
		}

		// Token: 0x17002C35 RID: 11317
		// (get) Token: 0x06009C27 RID: 39975 RVA: 0x001A225E File Offset: 0x001A045E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return QuestReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002C36 RID: 11318
		// (get) Token: 0x06009C28 RID: 39976 RVA: 0x001A2270 File Offset: 0x001A0470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return Quest.Descriptor;
			}
		}

		// Token: 0x06009C29 RID: 39977 RVA: 0x001A2277 File Offset: 0x001A0477
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Quest()
		{
		}

		// Token: 0x06009C2A RID: 39978 RVA: 0x001A228C File Offset: 0x001A048C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Quest(Quest other) : this()
		{
			this.status_ = other.status_;
			this.finishTime_ = other.finishTime_;
			this.fFFEHLJFOFN_ = other.fFFEHLJFOFN_.Clone();
			this.progress_ = other.progress_;
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009C2B RID: 39979 RVA: 0x001A22F1 File Offset: 0x001A04F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Quest Clone()
		{
			return new Quest(this);
		}

		// Token: 0x17002C37 RID: 11319
		// (get) Token: 0x06009C2C RID: 39980 RVA: 0x001A22F9 File Offset: 0x001A04F9
		// (set) Token: 0x06009C2D RID: 39981 RVA: 0x001A2301 File Offset: 0x001A0501
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuestStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x17002C38 RID: 11320
		// (get) Token: 0x06009C2E RID: 39982 RVA: 0x001A230A File Offset: 0x001A050A
		// (set) Token: 0x06009C2F RID: 39983 RVA: 0x001A2312 File Offset: 0x001A0512
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long FinishTime
		{
			get
			{
				return this.finishTime_;
			}
			set
			{
				this.finishTime_ = value;
			}
		}

		// Token: 0x17002C39 RID: 11321
		// (get) Token: 0x06009C30 RID: 39984 RVA: 0x001A231B File Offset: 0x001A051B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> FFFEHLJFOFN
		{
			get
			{
				return this.fFFEHLJFOFN_;
			}
		}

		// Token: 0x17002C3A RID: 11322
		// (get) Token: 0x06009C31 RID: 39985 RVA: 0x001A2323 File Offset: 0x001A0523
		// (set) Token: 0x06009C32 RID: 39986 RVA: 0x001A232B File Offset: 0x001A052B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Progress
		{
			get
			{
				return this.progress_;
			}
			set
			{
				this.progress_ = value;
			}
		}

		// Token: 0x17002C3B RID: 11323
		// (get) Token: 0x06009C33 RID: 39987 RVA: 0x001A2334 File Offset: 0x001A0534
		// (set) Token: 0x06009C34 RID: 39988 RVA: 0x001A233C File Offset: 0x001A053C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x06009C35 RID: 39989 RVA: 0x001A2345 File Offset: 0x001A0545
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as Quest);
		}

		// Token: 0x06009C36 RID: 39990 RVA: 0x001A2354 File Offset: 0x001A0554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(Quest other)
		{
			return other != null && (other == this || (this.Status == other.Status && this.FinishTime == other.FinishTime && this.fFFEHLJFOFN_.Equals(other.fFFEHLJFOFN_) && this.Progress == other.Progress && this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009C37 RID: 39991 RVA: 0x001A23D4 File Offset: 0x001A05D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Status != QuestStatus.QuestNone)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this.FinishTime != 0L)
			{
				num ^= this.FinishTime.GetHashCode();
			}
			num ^= this.fFFEHLJFOFN_.GetHashCode();
			if (this.Progress != 0U)
			{
				num ^= this.Progress.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009C38 RID: 39992 RVA: 0x001A2472 File Offset: 0x001A0672
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009C39 RID: 39993 RVA: 0x001A247A File Offset: 0x001A067A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009C3A RID: 39994 RVA: 0x001A2484 File Offset: 0x001A0684
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Id);
			}
			if (this.Status != QuestStatus.QuestNone)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.Status);
			}
			this.fFFEHLJFOFN_.WriteTo(ref output, Quest._repeated_fFFEHLJFOFN_codec);
			if (this.Progress != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Progress);
			}
			if (this.FinishTime != 0L)
			{
				output.WriteRawTag(88);
				output.WriteInt64(this.FinishTime);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009C3B RID: 39995 RVA: 0x001A2528 File Offset: 0x001A0728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Status != QuestStatus.QuestNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this.FinishTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.FinishTime);
			}
			num += this.fFFEHLJFOFN_.CalculateSize(Quest._repeated_fFFEHLJFOFN_codec);
			if (this.Progress != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Progress);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009C3C RID: 39996 RVA: 0x001A25C4 File Offset: 0x001A07C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(Quest other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Status != QuestStatus.QuestNone)
			{
				this.Status = other.Status;
			}
			if (other.FinishTime != 0L)
			{
				this.FinishTime = other.FinishTime;
			}
			this.fFFEHLJFOFN_.Add(other.fFFEHLJFOFN_);
			if (other.Progress != 0U)
			{
				this.Progress = other.Progress;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009C3D RID: 39997 RVA: 0x001A264D File Offset: 0x001A084D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009C3E RID: 39998 RVA: 0x001A2658 File Offset: 0x001A0858
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 16U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.Status = (QuestStatus)input.ReadEnum();
						continue;
					}
					if (num == 40U)
					{
						goto IL_5A;
					}
				}
				else
				{
					if (num == 42U)
					{
						goto IL_5A;
					}
					if (num == 48U)
					{
						this.Progress = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.FinishTime = input.ReadInt64();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_5A:
				this.fFFEHLJFOFN_.AddEntriesFrom(ref input, Quest._repeated_fFFEHLJFOFN_codec);
			}
		}

		// Token: 0x04003C52 RID: 15442
		private static readonly MessageParser<Quest> _parser = new MessageParser<Quest>(() => new Quest());

		// Token: 0x04003C53 RID: 15443
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003C54 RID: 15444
		public const int StatusFieldNumber = 4;

		// Token: 0x04003C55 RID: 15445
		private QuestStatus status_;

		// Token: 0x04003C56 RID: 15446
		public const int FinishTimeFieldNumber = 11;

		// Token: 0x04003C57 RID: 15447
		private long finishTime_;

		// Token: 0x04003C58 RID: 15448
		public const int FFFEHLJFOFNFieldNumber = 5;

		// Token: 0x04003C59 RID: 15449
		private static readonly FieldCodec<uint> _repeated_fFFEHLJFOFN_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04003C5A RID: 15450
		private readonly RepeatedField<uint> fFFEHLJFOFN_ = new RepeatedField<uint>();

		// Token: 0x04003C5B RID: 15451
		public const int ProgressFieldNumber = 6;

		// Token: 0x04003C5C RID: 15452
		private uint progress_;

		// Token: 0x04003C5D RID: 15453
		public const int IdFieldNumber = 2;

		// Token: 0x04003C5E RID: 15454
		private uint id_;
	}
}
